// 导入封装的axios
import axios from "../utils/http";
// 导入封装的接口地址
import * as baseURL from "../api/url";

export const maintain_add = (data) => {
    return axios({
        url: baseURL.maintain_add,
        method: "post",
        data,
    });

};

export const maintain_queryAll = (data) => {
    return axios({
        url: baseURL.maintain_queryAll,
        method: "post",
        data,
    });

};export const maintain_updateState = (data) => {
    return axios({
        url: baseURL.maintain_update,
        method: "post",
        data,
    });

};

export const UploadImage = (data) => {
    return axios({
        headers: {"Content-Type": "multipart/form-data;charset=UTF-8"},
        url: baseURL.UploadImage,
        method: "post",
        data,
    });

};
